package com.pcj.blog.service;/**
 * @param
 * @author pcj
 * @date 2021/12/27 14:12
 * @return
 */

import com.pcj.blog.dao.UserRepository;
import com.pcj.blog.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @className UserServiceImpl
 * @author pengcj
 * @date 2021/12/27 14:12
 */
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserRepository userRepository;
    @Override
    public User checkuser(String name, String password) {
        User user=userRepository.findByUsernameAndPassword(name,password);
        return user;
    }
}
